﻿using System.Windows.Media;

namespace Gmantis.Controls.Toolbar
{
    internal class ButtonHelper
    {
        public static string GetDefaultState(ImageSource largeImageSource, ImageSource smallImageSource, string labelTitle)
        {
            if ((largeImageSource != null) || (smallImageSource == null))
            {
                return "Large";
            }
            if (labelTitle == null)
            {
                return "Small";
            }
            return "Medium";
        }

        public static string GetState(string state, ImageSource largeImageSource, ImageSource smallImageSource, string labelTitle)
        {
            if ((!(state == "Large") || (largeImageSource != null)) || (smallImageSource == null))
            {
                return state;
            }
            if (labelTitle == null)
            {
                return "Small";
            }
            return "Medium";
        }
    }
}
